package com.scy.java.object;
//声明一个日期类型MyDate：有属性：年year,月
//   month，日day。
public class MyDate {
    String name ;
    int year;
    int month;
    int day;

    @Override
    public String toString() {
        return "{" +
                "姓名：" + name +
                ", 出生于：" + year +
                "年, " + month +
                "月," + day +
                "日}";
    }
}
